package name.wilbur.course.db.bigone.control;

import name.wilbur.course.db.bigone.model.Article;
import name.wilbur.course.db.bigone.service.IArticleService;
import name.wilbur.course.db.bigone.service.impl.ArticleService;

public class ArticleMgr extends BaseMgr {
	private IArticleService articleServ;
	private Article article;
	
	public ArticleMgr() {
		articleServ = new ArticleService();
	}
	
	public ArticleMgr(Article article) {
		articleServ = new ArticleService();
		this.article = article;
	}
	
	public boolean addNewArticle(Article article) {
		return articleServ.createNewArticle(article);
	}
	public boolean deleteArticle(Article article) {
		return articleServ.deleteArticle(article);
	}
	public boolean modifyArticle(Article article) {
		return articleServ.modifyArticle(article);
	}

	public Article getMyArticle() {
		return article;
	}

	public void setArticle(Article article) {
		this.article = article;
	}
	
	
}
